package com.sk.sourcecircle.activity.home.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.github.chrisbanes.photoview.PhotoView;
import com.sk.sourcecircle.R;
import com.sk.sourcecircle.base.BaseActivity;

import java.io.File;

import butterknife.BindView;

/**
 * Created by sk on 2018/1/9.
 */

public class SinglePreviewActivity extends BaseActivity {

    @BindView(R.id.photo)
    PhotoView photo;
    private String url;

    @Override
    protected int getContentView() {
        return R.layout.activity_single_preview;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStatusBarTintResource(R.color.navigationBar_color);
        url = getIntent().getStringExtra("url");
        Glide.with(mContext).load(new File(url)).into(photo);
    }
}
